
import React from 'react';
import router from 'umi/router';
import styles from './users.css';
import Link from 'umi/link';


const usersId: React.FC = props => {
    const location: any = props.location;
    return (
        <div className={styles.id}>
            <h1>Page {location.pathname}</h1>
            <button className={styles.list}><Link to={{ pathname: location.query && location.query.from === 'index' ? '/' : "/users" }}>go back</Link></button>
        </div>
    );
}
export default usersId;
